# Created by: Olivier Duchateau
# $FreeBSD$

PORTNAME=	menulibre
PORTVERSION=	2.0.4
CATEGORIES=	deskutils
MASTER_SITES=	https://launchpadlibrarian.net/175502417/ \
	https://launchpad.net/${PORTNAME}/${PORTVERSION:R}/${PORTVERSION}/+download/

MAINTAINER=	olivierd@FreeBSD.org
COMMENT=	Advanced menu editor

LICENSE=	GPLv3

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}distutils-extra>=2.38:${PORTSDIR}/devel/py-distutils-extra
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}psutil>=2.1.1:${PORTSDIR}/sysutils/py-psutil \
	xdg-desktop-menu:${PORTSDIR}/devel/xdg-utils
# When GNOME3 will be in ports tree, gnome-menus will be in USE_GNOME macro
LIB_DEPENDS=	libgnome-menu-3.so:${PORTSDIR}/x11/gnome-menus

USES=	shebangfix gettext
USE_GNOME=	gtk30 py3gobject3
USE_PYTHON=	3
USE_PYDISTUTILS=	yes
INSTALLS_ICONS=	yes

SHEBANG_FILES=	*.py bin/menulibre
python_CMD=	${SETENV} python

.include <bsd.port.mk>
